package com.itheima.Demo1recursion;

public class CruisionDemo2
{
    public static void main(String[] args) {
        System.out.println(print(5));
    }
    public static int print(int n)
    {
        if(n==1)
        {
            return 1;
        }
        else
        {
            return n*print(n-1);
        }
    }

}
